<%@page import="org.json.simple.JSONArray"%>
<%@page import="vo.StudyVo"%>
<%@page import="java.util.List"%>
<%@page import="dao.StudyDao"%>
<%@ page language="java" contentType="text/plain; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("utf-8");
	int title_no=Integer.parseInt(request.getParameter("title_no"));  
	
	//int title_no=1;
	
	List<StudyVo> list = StudyDao.getDao().selectSubject(title_no);
	
	
	System.out.println(list.size());
	JSONArray arr = new JSONArray();
	arr.addAll(list);
	out.println(arr.toString());
%>